
#include "app.h"

void main(void)
{

	bsp_IO_Init();

	bsp_Timer_Init();  //int timer0/1

	bsp_EX_Init();
	
	bsp_PWM_Init();  //int pwm

	bsp_timer2_init(); //int 433m timer2
	
	WDTCON |= 0x10;			
	
	bsp_Uart0_Init(16,9600); //debug uart
	
	bsp_Uart1_Init(16,9600); //smart uart

	app_constructor(&app_curtain);
	
	while(1)
	{
		app_run();
	}
}
